import request from '@/sheep/request';

interface ChatApi {
  unifiedToken: () => Promise<any>;
}

// TODO: 暂不支持 socket 聊天
const chatApi: ChatApi = {
  // 获取聊天token
  unifiedToken: (): Promise<any> =>
    request({
      url: 'unifiedToken',
      custom: {
        showError: false,
        showLoading: false,
      },
    }),
};

export default chatApi;
